package com.rede.didiok.user.modulelist.rank.event.rankMemberEvent;

import org.springframework.context.ApplicationEvent;

import com.rede.didiok.user.modulelist.rank.entity.RankMemberEntity;

/**
 * 榜单成员基础事件
 *
 * @author 遇见
 */
public abstract class RankMemberEvent extends ApplicationEvent {
    /**
     * 是否是管理员
     */
    private Boolean isAdmin;

    public RankMemberEvent(RankMemberEntity source, Boolean isAdmin) {

        super(source);
        this.isAdmin = isAdmin;
    }

    public Boolean isAdmin() {
        return isAdmin;
    }
}
